package com.sakura.oj.sandbox.enums;

import lombok.Getter;

/**
 * 运行状态
 */
@Getter
public enum CodeSandBoxStatusEnums {

    ACCEPTED(1, "运行成功"),
    FAILED(2, "运行失败"),
    COMPILE_FAILED(3, "编译失败"),
    RUNTIME_ERROR(4, "运行时错误"),
    DANGEROUS_CODE(5, "恶意代码");

    final Integer value;
    final String text;

    CodeSandBoxStatusEnums(Integer value, String text) {
        this.value = value;
        this.text = text;
    }

}
